﻿@{
    ViewBag.Title = "Home Page";
}

<h2>@ViewBag.Message</h2>

@using (Html.BeginForm("Search", "Home", FormMethod.Get))
{ 
    <div id="filter"> </div>
    
    <input type="submit" value="Search" />
}

<script type="text/javascript">
    $(document).ready(function () {

        var selectedCombos = {
            cb1 : @ViewBag.Combos.Cb1,
            cb2 : @ViewBag.Combos.Cb2,
            cb3 : @ViewBag.Combos.Cb3,
        };

        buildCombo(selectedCombos);
    });

</script>